console.log('ok')

import Vue from 'vue'

import app from './App.vue'

import VueRouter from 'vue-router'

import VueResource from 'vue-resource'

import moment from 'moment'

Vue.filter('dataformate',function(datastr,patter='YYYY-MM-DD HH:mm:ss'){
  return moment(datastr).format(patter)
})

Vue.use(VueResource)

Vue.http.options.root='http://47.89.21.179:8080'

Vue.use(VueRouter)

import {header,Swipe, SwipeItem,button} from 'mint-ui'

Vue.component(header.name,header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(button.name, button)

import './lib/mui/css/mui.min.css'

import './lib/mui/css/icons-extra.css'

import router from './router.js'



var vm=new Vue({
  el:'#app',
  render:c=>c(app),
  router
})